package com.ssm.song.book.init;

import com.ssm.song.book.config.CorsConfig;
import com.ssm.song.book.config.JdbcConfiguration;
import com.ssm.song.book.config.TransactionConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * @Author 宋伟宁
 * @Date 2023/10/16
 * @Version 1.0
 **/

public class MvcInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{
               // TransactionConfig.class,
                CorsConfig.class,
                JdbcConfiguration.class
        };
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class[0];
    }

    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
